package com.lry.util.common.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * 分页信息
 *
 * @author 李瑞益
 * @date 2019/9/25
 */
public class ResPageInfo implements Serializable {
    private static final long serialVersionUID = 7148956425247129722L;

    /**当前页*/
    private int curPage;

    /**页大小*/
    private int pageSize;

    /**数据总数*/
    private int totalRows;

    /**总页数*/
    private int totalPages;

    /**开始索引*/
    private int startIndex;

    /**结束索引*/
    private int endIndex;

    public ResPageInfo() {}

    public int getCurPage() {
        return curPage;
    }

    public void setCurPage(int curPage) {
        this.curPage = curPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }
}
